/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-07-24 16:02:56
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-07-30 18:13:18
 * @FilePath: /yyshort/lib/pages/home/state.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:get/get.dart';
import 'package:yyshort/common/model/banner_model.dart';
import 'package:yyshort/common/model/recommend_list_model.dart';
import 'package:yyshort/common/model/video_model.dart';

class HomeState {
  // title
  final _title = "".obs;
  set title(value) => _title.value = value;
  get title => _title.value;
  // bannerList
  // 使用 RxList 来实现响应式
  //  RxList<BannerModel> 是 GetX 提供的响应式列表类型
  // 轮播图数据
  final RxList<BannerModel> bannerList = <BannerModel>[].obs;

  //  推荐数据
  final RxList<RecommendModel> recommendlist = <RecommendModel>[].obs;

  // 瀑布流数据
  final RxList<VideoModel> trendingList = <VideoModel>[].obs;

  final _scrollPosition = 0.0.obs;
  set scrollPosition(value) => _scrollPosition.value = value;
  get scrollPosition => _scrollPosition.value;

   
}
